package com.dscyy.readutil;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class TestString {

	public static void main(String[] args) {
		String str = "<a href='http://www.czvv.com/340000/' title='安徽'>安徽</a>省阜阳市颍泉区<a href='http://www.czvv.com/371300/' title='临沂'>临沂</a>商城2期A区24栋113号";
		while(str.contains("<")) {
			str = str.replace(str.substring(str.indexOf("<"),str.indexOf(">")+1),"");
		}
		System.out.println(str);
//		String regEx="<\\d+>"; 
//		Pattern p = Pattern.compile(regEx); 
//		Matcher matcher = p.matcher(str);
//		
//		while (matcher.find()) {
//            System.out.print("Start index: " + matcher.start());
//            System.out.print(" End index: " + matcher.end() + " ");
//            System.out.println(matcher.groupCount());
//		}
//		System.out.println(matcher.replaceAll("").trim());
	}
}
